﻿using System.Collections.Generic;

namespace Xcapp
{
    /// <summary>
    /// Argument descriptor.
    /// </summary>
    public class ArgDescriptions
    {
        private string[] _desc;

        /// <summary>
        /// Initializes a new instance of the <see cref="ArgDescriptions"/> class.
        /// </summary>
        /// <param name="key">The key.</param>
        /// <param name="descriptions">The descriptions.</param>
        public ArgDescriptions(string key, params string[] descriptions)
        {
            this.Key = key;
            this._desc = descriptions;
        }

        /// <summary>
        /// Gets the key.
        /// </summary>
        /// <value>
        /// The key.
        /// </value>
        public string Key { get; private set; }

        /// <summary>
        /// Gets the descriptions.
        /// </summary>
        /// <value>
        /// The descriptions.
        /// </value>
        public IEnumerable<string> Descriptions
        {
            get
            {
                return this._desc;
            }
        }
    }
}